package com.app.micaihu.configure;

import android.os.Environment;

import com.app.micaihu.app.AppApplication;

import java.io.File;

/**
 * 程序配置文件
 *
 * @author linkai
 */
public class AppConfigTools {
    //	public static final String APICODE之前- = "62mkW5yMA6tfF1C3";// 203版本及-----------渠道接口api标识
//	public static final String APICODE = "D7wXW4rt5#jmGcfr";//204 版本------------------渠道接口api标识
//	public static final String APICODE = "u6kk09iZNuLgZcuP";//2.1.0 版本------------------渠道接口api标识
//	public static final String APICODE = "RxoCRagRwlZRegsP";//2.2.1 版本------------------渠道接口api标识
//	public static final String APICODE = "5HifYEzORNB4fMQr";//2.2.1 版本------------------渠道接口api标识
    public static final String APICODE = "X0uouBpmEW1zul6F";//2.3.7 版本------------------渠道接口api标识

    /******************程序逻辑配置  start*****************/
    public static boolean isSetNotify;//是否设置通知栏
    public static boolean isLoadImage;//是否加载图片
    public static boolean topicAttention;//话题的关注状态是否刷新
    public static int installValue;//安装游戏的变化值(用于判断游戏列表是否刷新)
    public static boolean isShowPushDialog;//是否展示推送弹窗


    public static long PUSHPROMPT_DIALOG_SHOW_INTERVAL = 1000 * 60 * 60 * 24 * 7;//提醒开启推送
    //  间隔事件

    /******************程序逻辑配置  end*****************/


    /********************各个缓存文件夹配置  start*******************/
    // 文件路径配置
    public static final String SPREARATOR = File.separator;// 获取系统文件路径分隔符
    public static final String CACHEFOLDER = "micaihujunshi"; // 缓存的文件夹名字
    public static final String SDCARDPATH = Environment
            .getExternalStorageDirectory().getAbsolutePath() + SPREARATOR + CACHEFOLDER;// sd卡根路径
    ///Android/data/<包名>/
    public static final String SDCARDPATH1 = Environment
            .getExternalStorageDirectory().getAbsolutePath() + SPREARATOR + "Android" + SPREARATOR + "data" + SPREARATOR + AppApplication.getInstance().getPackageName();// sd卡根路径(仅适用于离线下载)

//	public static final String DATAPATH=AppApplication.getInstance().getFilesDir().getAbsolutePath();//data路径

    public static final String IMGCACHE = "imgCache";// 缓存图片的文件夹

    public static final String ALLIMGPATHFloder = SDCARDPATH1 + SPREARATOR + IMGCACHE;//所有缓存图片的父文件夹 freso的

    public static final String OKHTTPFloder = SDCARDPATH1 + SPREARATOR + "okhttpImg";//okhttp缓存文件夹

    public static final String NEWS_OFF_LINE = SDCARDPATH1 + SPREARATOR + "offLine";// 离线下载的文件夹

//	public static final String DEBUGFILE = SDCARDPATH1 + SPREARATOR + "debug";// debug文件夹

    public static final String USERSAVEIMG = SDCARDPATH + SPREARATOR + "img";// 用户下载的图片文件夹

    public static final String APKFLODER = SDCARDPATH + SPREARATOR + "apk";// 下载apk的文件夹

//	public static final String WEBFLODER = SDCARDPATH1 + SPREARATOR
//			+ CACHEFOLDER + SPREARATOR + "web";// web浏览器的缓存文件夹


    //图片的资源缓存地址
    public static final String RESOUCENAME = "res://com.app.micaihu/";//本地资源文件

    /********************各个缓存文件夹配置  end*******************/


    /********************第三方 ID配置 start*******************/
    public static final String WECHAT_ID = "wxb53d76b3baeae257";//微信平台 appid
    public static final String WECHAT_SECRET = "582db692dad8ace0afe773b95b491969";//微信平台 SECRET

    public static final String QQ_APPID = "1105420681";//QQ/QZONE平台 APPID
    public static final String QQ_APPKEY = "S9P099dc8FjhBhGJ";//QQ/QZON APPKEY

    public static final String SINA_APPID = "3521290273";//新浪微博APPID
    public static final String SINA_APPKEY = "dd44cf1749de9aecba521f38dcfef45a";//新浪微博 APPKEY


    public static final String MIPUSH_APPKEY = "5121749114168";//小米推送的appKey
    public static final String MIPUSH_APPID = "2882303761517491168";//小米推送的appId


    /********************第三方 ID配置  end*******************/

}
